Conversation
|
Caution Review failedThe pull request is closed. 📝 WalkthroughWalkthroughThe changes introduce support for multiple JWT audiences in the authentication system. The Changes
Sequence Diagram(s)sequenceDiagram
participant ProtoMgmt as Proto Definition<br/>(management.proto)
participant Conversion as Management<br/>Conversion Logic
participant SSHEngine as SSH Engine<br/>(engine_ssh.go)
participant SSHServer as SSH Server<br/>(server.go)
participant Validator as JWT Validator
ProtoMgmt->>ProtoMgmt: Define Audiences field ([]string)
Conversion->>Conversion: buildJWTConfig() constructs<br/>Audiences slice from<br/>AuthAudience + CLIAuthAudience
SSHEngine->>SSHEngine: GetAudiences() retrieves<br/>audiences from proto config
SSHEngine->>SSHServer: Initialize JWT config<br/>with Audiences slice
SSHServer->>SSHServer: Validate Audiences<br/>not empty
SSHServer->>Validator: Configure validator with<br/>multiple allowed audiences
Validator->>Validator: Accept tokens matching<br/>any audience in slice
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested reviewers
Poem
✨ Finishing touches
📜 Recent review detailsConfiguration used: defaults Review profile: CHILL Plan: Pro ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (7)
✏️ Tip: You can disable this entire section by setting Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|



Describe your changes
Issue ticket number and link
Stack
Checklist
Documentation
Select exactly one:
Docs PR URL (required if "docs added" is checked)
Paste the PR link from https://github.com/netbirdio/docs here:
https://github.com/netbirdio/docs/pull/__
Summary by CodeRabbit
New Features
Tests
✏️ Tip: You can customize this high-level summary in your review settings.